package com.paradogs.gs.modules.equip.enums;

import com.paradogs.gs.modules.attr.AttrType;
import lombok.Getter;
import lombok.experimental.Accessors;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: yumi
 * @date: 2024/12/31  10:20
 * @Description: 装备部位
 */
@Getter
@Accessors(fluent = true)
public enum EquipPart {

    WEAPON(1),
    HEADER(2),
    BODY(3),
    WAIST(4),
    GLOVE(5),
    SHOE(6);

    private int id;
    EquipPart(int id) {
        this.id = id;
    }

    private static Map<Integer, EquipPart> map = new HashMap<>();
    static {
        for (EquipPart type : EquipPart.values()) {
            map.put(type.id, type);
        }
    }
    public static EquipPart of(int id) {
        return map.get(id);
    }

}
